package com.hw.blog.utils;

import java.text.SimpleDateFormat;
import java.util.Calendar;



public class SecTest {
	
	public static void main(String args[]) throws Exception{
		
//		// 암복호화에 사용할 키 배열생성
		int[] seedKey = SEEDUtil.getSeedRoundKey(ConstValue.SeedRoundKey);
		String nomalStr = "chejug";
		String encStr = SEEDUtil.getSeedEncrypt(nomalStr, seedKey);
		String decStr = SEEDUtil.getSeedDecrypt(encStr, seedKey);
		
		System.out.println("o : "+nomalStr);
		System.out.println("encStr : "+encStr);
		System.out.println("decStr : "+decStr);

		String ddd = SEEDUtil.getSeedEncrypt(nomalStr, "1rrq","AA2r");
		System.out.println("o : "+nomalStr);
		System.out.println("encStr : "+ddd);
		System.out.println("decStr : "+SEEDUtil.getSeedDecrypt(ddd, "1rrq","AA2r"));

	}
	
	
}
